package com.jh.user.pojo.enums;

public enum IsJfPosEnums {
    TRUE(1, "是"),
    FLASE(2, "否");

    IsJfPosEnums(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private int value;

    private String desc;


    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDesc(int value) {
        IsJfPosEnums[] shopRegisterStatusEnums = IsJfPosEnums.values();
        for (IsJfPosEnums statusEnums : shopRegisterStatusEnums) {
            if (statusEnums.getValue() == value) {
                return statusEnums.getDesc();
            }
        }
        return "";
    }
}